package com.service.sso.sdk.listener;

import com.service.sso.sdk.event.UserLogoutEvent;
import com.service.sso.sdk.model.UserModel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class UserLogoutEventListener {
    @EventListener
    public void userLogoutEvent(UserLogoutEvent event) {
        UserModel userModel = event.getUserModel();
        log.warn("用户退出登录 {}", userModel);
    }
}
